package Annot.Dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Repository;

@Repository("userDao")
@PropertySource("classpath:jdbc.properties")
public class UserDaoImpl implements  UserDao{
    @Value("${jdbc.url}")
    private String url;

    @Value("小明")
    private String name;
    @Override
    public void save() {
        System.out.println("成功拉起UserDao中的save方法");
        System.out.println(name+" "+url);
    }
}
